

var swakstats = {
	incrementOutwitOptIn: function() {
		try {
			var count = SS_getPreference(SMACK_STAT_OW_OPTINCOUNT);
			count++;
			ssopts.setIntPref(SMACK_STAT_OW_OPTINCOUNT,count);
		}
		catch(x){}
	},
	incrementOutwitSelected: function() {
		try {
			var count = SS_getPreference(SMACK_STAT_OW_SELECTED);
			count++;
			ssopts.setIntPref(SMACK_STAT_OW_SELECTED,count);
		}
		catch(x){}
	},	
	incrementOutwitVote: function() {
		try {
			var count = SS_getPreference(SMACK_STAT_OW_VOTECOUNT);
			count++;
			ssopts.setIntPref(SMACK_STAT_OW_VOTECOUNT,count);
		}
		catch(x){}		
	},
	incrementOutwitPoint: function() {
		try {
			var count = SS_getPreference(SMACK_STAT_OW_POINTCOUNT);
			count++;
			ssopts.setIntPref(SMACK_STAT_OW_POINTCOUNT,count);
		}
		catch(x){}		
	},
	incrementSmackPotPlayed: function() {
		try {
			var count = SS_getPreference(SMACK_STAT_SP_PLAYED);
			count++;
			ssopts.setIntPref(SMACK_STAT_SP_PLAYED,count);
		}
		catch(x){}		
	},
	incrementSmackPotBet: function(coins) {
		if (coins == null) coins = 0;
		try {
			var count = SS_getPreference(SMACK_STAT_SP_COINBETCOUNT);
			count = count+coins;
			ssopts.setIntPref(SMACK_STAT_SP_COINBETCOUNT,count);
		}
		catch(x){}		
	},
	incrementSmackPotCoinsWon: function(coins) {
		if (coins == null) coins = 0;
		try {
			var count = SS_getPreference(SMACK_STAT_SP_COINWONCOUNT);
			count = count+coins;
			ssopts.setIntPref(SMACK_STAT_SP_COINWONCOUNT,count);
		}
		catch(x){}		
	},
	incrementGuruGuessPlayed: function() {
		try {
			var count = SS_getPreference(SMACK_STAT_GG_PLAYED);
			count++;
			ssopts.setIntPref(SMACK_STAT_GG_PLAYED,count);
		}
		catch(x){}		
	}		
}